<?php
if(!defined('TITLE')) {
    die('error');
}
?>
<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <title><?php echo TITLE;?></title>
    <meta name="keywords" content="" />
    <meta name="description" content="" />
    <link rel="stylesheet" type="text/css" href="template/default/css/style.css" />
	</head>
<body>
<div class="header">
<?php echo TITLE;?>
</div>
<?php
include 'nav.php';
?>
<div class="content">
<?php
foreach($list as $k=>$v){
echo <<<html
    <div class="box">
    <div class="info"><span>昵称：{$v['nickname']}</span><span>IP地址：{$v['ip']}</span><span>时间：{$v['t']}</span></div>
    <div class="text"><b>留言内容：</b>{$v['content']}</div>
    <div class="reply"><b>管理回复：</b>{$v['reply']}</div>
    </div>
html;
}
?>
</div>
<div class="page">
<?php echo $page;?>
</div>
<div class="footer">
<?php echo date('Y');?> &copy; <?php echo COPYRIGHT;?> <?php echo runTime($startTime);?>
</div>
</body>
</html>